<template>
	<view class="changeAlphabel">
		<view
		 class="alpabel" 
		 v-for="(item,index) in cityAlphabal" 
		 :key="index"
		 hover-class="hover"
		 @click="click(item.initial)"
		 >
			{{item.initial}}
		</view>
	</view>
</template>

<script>
	export default{
		props:["cityAlphabal"],
		data(){
			return{
				
			}
		},
		methods:{
			click(res){
				this.$emit("changeAlpal",res)
			}
		}
	}
</script>

<style>
	.changeAlphabel{
		color: #AAAAAA;
		position: fixed;
		top: 150px;
		right: 0px;
	}
	.alpabel{
		width: 40px;
		text-align: center;
		line-height: 20px;
		font-size: 12px;
	}
	.hover{
		width: 40px;
		text-align: center;
		line-height: 20px;
		font-size: 18px;
	}
</style>
